<?php
	get_header();
?>
<?php
    //$active_deals_ids = cpx_get_deals();
?>
<div id="all-deals">
    <h1 id="inner-title"> All deals</h1>
    <hr/>
    <div class="categories-menu">
        <?php 
            $link_all_deals = site_url('/all-deals');
        ?>
        <span class=""><a class="list-by-category" href="<?php echo $link_all_deals;?>" title="See all deals">All Deals</a></span>
        <?php
            cpx_print_categories(1,0,1);
        ?>
    </div>
    <hr/>
    <?php 
        $row_display = get_option('number_row_all_deal');
        $display = $row_display*4;
        if($row_display == ''){
            $display = 16;
        }
        cpx_get_deals('',$display, 0,'active');
    ?>
</div>
<?php
	get_footer();
?>